#!/bin/bash -
# change the mac of my wireless network card
# 09/09/23 Wen

# my original mac address
#cmac=00:C0:CA:2F:70:2E

if [ `id -u` != 0 ]
then
        echo need to be root!
	exit 1
fi


# set the various
# JuniperN 00:1d:b5:70:2b:b9
dmac=00:1d:b5:70:4c:6d
itface=wlan0

# deny wireless network,change the mac,invoke wireless network 
ifconfig $itface down
ifconfig $itface hw ether $dmac
ifconfig $itface up
